#ifndef NODE_H
#define NODE_H
#include "People.h"


class Node {
private:
    People* data;  
    Node* next;   
public:
    Node();
    Node(People* p);
    ~Node();

   
    People* getData() const { return data; }
    Node* getNext() const { return next; }
    void setNext(Node* n) { next = n; }
    void setData(People* p) { data = p; }
};

#endif